The RDC now includes Report Variables. These are "smart" variables that can be used to maintain state when you code things such as running totals based on a Section Format event. These variables understand what's going on inside the report formatting process at any given time, and they enable you to do more of your report
The RDC uses a multiple pass model to generate its reports. The number of passes the program needs to generate a given report depends on the complexity of the report. There is no "one size fits all" answer to the question, "How many passes will it take?"
During each pass, various sections in the report get fired. A Details section might get fired several times for a single record. This might happen, for example, when you have selected the "Keep Section Together" option and the program jumps back and forth between pages as it determines on which page it should print the section.
If you use a standard VB variable to calculate running totals, that variable is unable to use the built
Note: The maximum allowable size for a string in a string Report Variable is 255 including the null byte. If you set a string value to more than 255, the string will be truncated.
For further discussion on "what happens when" during the report creation process, see the Report Processing Model appendix in the Crystal Reports User's Guide.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |